#define  _CRT_SECURE_NO_WARNINGS 1

#include<bits/stdc++.h>
#define sd(n) scanf("%d",&n) 
#define sld(n) scanf("%lld",&n)
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
#define fi first
#define se second
#define pii pair<int, int>;
#define vi vector<int>;
typedef long long int ll;
using namespace std;
//----------------------------------------------------------------------------//
int arr[100010];
void solve()
{
	int n, m;
	sd(n), sd(m);
	for (int i = 0; i < n; i++) sd(arr[i]);
	sort(arr, arr + n);
	int head = 0;
	int tail = n - 1;
	if()


}

int main()
{
	solve();
	return 0;
}